package com.xxx.yuedong.campaign.controller.form;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author HG
 * @version 1.0
 **/
@Data
public class InsertTeamForm {
    /**
     * 名称
     */
    @NotBlank(message = "跑团名称不能为空")
    private String name;
    /**
     * 简介
     */
    @NotBlank(message = "简介不能为空")
    private String desc;
    /**
     * 开始地址
     */
    @NotBlank(message = "开始地址不能为空")
    private String startLocation;
    /**
     * 结束地址
     */
    @NotBlank(message = "结束地址不能为空")
    private String endLocation;
    /**
     * 预览图片
     */
    @NotBlank(message = "预览图片不能为空")
    private String preImg;
}
